package com.autotest.sync.stf;

public enum OperateType {
	TOUCHDOWN (1, "A keyword of touchevent,it is used to send touchdown events to minitouch."), 
	TOUCHUP (2, "A keyword of touchevent,it is used to send touchup events to minitouch."), 
	TOUCHMOVE (3, "A keyword of touchevent,it is used to send touchmove events to minitouch."), 
	ADBCMD (4, "A command interface which is used to execute adb commands."),
	SLEEP (5, "A command interface which is used to execute adb commands."),
	SET_TEXT (6, "A command interface which is used to execute adb commands."),
	ADB_REMOTE(7,"A command interface which is used to open remote-debug-adb service");
	
  // formatter:on
	public static OperateType fromInteger(final int x) {
		for(OperateType item : OperateType.values()){
			if(item.value == x){
				return item;
			}
		}
		return null;
	  }
	
	private int value;
	private String dir;
	
	private OperateType(int OperateType, String dir){
		this.value = OperateType;
		this.dir = dir;
	}
	
	public int getValue() {
	    return value;
	}
	public String getDir(){
		return dir;
	}
}